<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/board.css" />
<title>Insert title here</title>
<script type="text/javascript">
function modifyBrd(){
	var form = document.modify_form;
	form.action="notice_modify.do";
	form.submit();
}

function deleteBrd(){
	location.href="notice_delete.do";
}
</script>
</head>
<body>
	<form name="modify_form" method="post">
		<!-- 게시판 상세보기 -->
		<div id='notice_list_top' align="center">

			<div class="top_detail" align="left">
			    <input type="hidden" name="idx" value="${noticeBoard.idx}">
			    <label class="board_title"><b>제목</b></label>
				<input type="text" name="title" value="${noticeBoard.title}"><br />
			 작성일<label class="board_detail_date"><fmt:formatDate value="${noticeBoard.wdate}" pattern="yyyy-MM-dd" /></label><br />
				<c:if test="${noticeBoard.udate != null}">
			 수정일<label class="board_detail_date"><fmt:formatDate value="${noticeBoard.udate}" pattern="yyyy-MM-dd" /></label>
					<br />
				</c:if>
				조회수<label class="board_detail_hit">${noticeBoard.read_count}</label>
			</div>
			<div class="content_detail">
				<textarea name="content" rows="10" style="width: 98%">${noticeBoard.content}</textarea>

			</div>
		</div>

		<p />
		</form>

		<!-- 버튼영역 -->
		<div id='notice_detail_btn' align="right">
			<input class="notiBtn" type="button" value='목록'
				style="background: red; color: white;"
				onclick="location.href='notice_manage.do?page=1&field=&keyword'">
			<input class="notiBtn" type="button" value='수정' onclick='modifyBrd()'>
			<input class="notiBtn" type="button" value='삭제' onclick='deleteBrd()'>
		</div>
	
</body>
</html>